{# form_theme form 'IMTDashboardBundle:Form:fields.html.twig' #}
<form action="{{ path('profil_user_edit') }}" {{ form_enctype(form) }} method="POST" class="form-horizontal">
<div class="row-fluid">
	<div class="span6">
		{{ form_errors(form) }}
		<fieldset>
			<legend>Mon profil</legend>
{#     	{{ form_row(form.participant.person.civility, { 'label': 'Civilité'}) }}#}
{#     	{{ form_row(form.participant.person.name, { 'label': 'Nom'}) }}#}
{#     	{{ form_row(form.participant.person.firstname, { 'label': 'Prénom' }) }}#}
    	</fieldset>
    	
		
{#     	<hr>#}
{# 		<form action="#" onsubmit="return false;" class="form-horizontal">#}
{# 			<div class="control-group">#}
{# 		        <label for="optionsCheckbox" class="control-label">Civilité</label>#}
{# 		        <div class="controls">#}
{# 		        	<label class="checkbox inline">#}
{# 		                <input type="radio" value="Mr" /> M.#}
{# 		            </label>#}
{# 		            <label class="checkbox inline">#}
{# 		                <input type="radio" value="Mme" /> Mme#}
{# 		            </label>#}
{# 		            <label class="checkbox inline">#}
{# 		                <input type="radio" value="Mlle" /> Mlle#}
{# 		            </label>#}
{# 		        </div>#}
{# 		    </div>#}
{# 			<div class="control-group">#}
{# 		    	<label for="input01" class="control-label">Nom</label>#}
{# 		        <div class="controls">#}
{# 		        	<input type="text" />#}
{# 		        </div>#}
{# 		    </div>#}
{# 		    <div class="control-group">#}
{# 		    	<label for="input01" class="control-label">Prénom</label>#}
{# 		        <div class="controls">#}
{# 		        	<div class="input-append" id="profil_prenom" style="position: relative;">#}
{# 		                <input type="text"><!-- <button data-toggle="dropdown" title="Visibilité" data-target="profil_prenom" data-align="right" class="btn dropdown-toggle"><i class="icon-globe"></i> <span class="caret"></span></button>#}
{# 					    <ul class="dropdown-menu">#}
{# 					        <li><a href="#"><input type="checkbox" /> Public</a></li>#}
{# 					        <li><a href="#"><input type="checkbox" /> Privé</a></li>#}
{# 					        <li class="divider"></li>#}
{# 					        <li style="position:relative;">#}
{# 					        	<a href="#" style="position:relative;"><input type="checkbox" /> Comptes <span style="float:right; position:absolute; top:3px; right:4px;">></span></a>#}
{# 					        	<div style="position:absolute; left:160px; top:-33px; width:360px;">#}
{# 					        		<div style="float:left; width:180px; position:relative;">#}
{# 						        		<input type="text" style="width:172px; border-bottom:0px; border-radius:5px 0 0 0;">#}
{# 							        	<ul class="dropdown-menu" style="max-height:200px; width:180px; overflow-y:auto;">#}
{# 									        <li><a href="#"><input type="checkbox"> Gmail</a></li>#}
{# 									       	<li><a href="#"><input type="checkbox"> bla bla</a></li>#}
{# 									       	<li><a href="#"><input type="checkbox"> bla bla</a></li>#}
{# 									       	<li><a href="#"><input type="checkbox"> bla bla</a></li>#}
{# 									       	<li><a href="#"><input type="checkbox"> bla bla</a></li>#}
{# 									       	<li><a href="#"><input type="checkbox"> bla bla</a></li>#}
{# 									       	<li><a href="#"><input type="checkbox"> bla bla</a></li>#}
{# 									       	<li><a href="#"><input type="checkbox"> bla bla</a></li>#}
{# 									       	<li><a href="#"><input type="checkbox"> bla bla</a></li>#}
{# 									       	<li><a href="#"><input type="checkbox"> bla bla</a></li>#}
{# 									       	<li><a href="#"><input type="checkbox"> bla bla</a></li>#}
{# 									    </ul>#}
{# 									</div>#}
{# 									<div style="float:left; width:180px; position:relative;">#}
{# 						        		<input type="text" style="width:172px; border-bottom:0px; border-radius:0 5px 0 0;">#}
{# 							        	<ul class="dropdown-menu" style="max-height:200px; width:180px; overflow-y:auto;">#}
{# 									        <li><a href="#"><input type="checkbox"> Toto</a></li>#}
{# 									       	<li><a href="#"><input type="checkbox"> Tata</a></li>#}
{# 									       	<li><a href="#"><input type="checkbox"> bla bla</a></li>#}
{# 									       	<li><a href="#"><input type="checkbox"> bla bla</a></li>#}
{# 									       	<li><a href="#"><input type="checkbox"> bla bla</a></li>#}
{# 									       	<li><a href="#"><input type="checkbox"> bla bla</a></li>#}
{# 									       	<li><a href="#"><input type="checkbox"> bla bla</a></li>#}
{# 									       	<li><a href="#"><input type="checkbox"> bla bla</a></li>#}
{# 									       	<li><a href="#"><input type="checkbox"> bla bla</a></li>#}
{# 									       	<li><a href="#"><input type="checkbox"> bla bla</a></li>#}
{# 									       	<li><a href="#"><input type="checkbox"> bla bla</a></li>#}
{# 									    </ul>#}
{# 									</div>#}
{# 								</div>#}
{# 					        </li>#}
{# 					        <li><a href="#"><input type="checkbox" /> Groupes </a></li>#}
{# 					        <li><a href="#"><input type="checkbox" /> Utilisateurs </a></li>#}
{# 					    </ul>-->#}
{# 		            </div>#}
{# 		        </div>#}
{# 		    </div>#}
{# 		</form>#}
	</div>
	<div class="span6">
		<div class="thumbnail" style=" width:260px; margin-bottom:18px;">
            <img width="260px" alt="" src="http://placehold.it/260x180">
            <div class="caption">
              	<p><a href="#"><i class="icon-pencil"></i> Modifier mon avatar</a></p>
            </div>
        </div>
        <fieldset>
			<legend>Informations du compte</legend>
		{{ form_row(form.user.email, { 'label': 'Adresse Email'}) }}
    	{{ form_row(form.user.username, { 'label': 'Identifiant'}) }}
    	{{ form_row(form.current.first, { 'label': 'Nouveau mot de passe' }) }}	
    	{{ form_row(form.current.second, { 'label': 'Confirmation' }) }}
		</fieldset>		
    	<div style="display:none;">{{ form_rest(form) }}</div>
	</div>
</div>
<div class="row-fluid">
	<div class="span12 form-actions">
    	<input class="btn btn-primary" type="submit" value="Modifier mon profil" />
   	</div>
</div>
</form>